/*
 * @Description: 
 * @Autor: Thlq
 * @Date: 2020-08-05 15:47:22
 * @LastEditors: Thlq
 * @LastEditTime: 2020-12-02 15:50:18
 */
import { baseUrl } from "../config/config"

const install = (Vue, vm) => {
	
	Vue.prototype.$u.http.setConfig({
		baseUrl,
		showLoading: true,
		loadingText: '加载中',
		loadingTime: 800,
		loadingMask: true
	})
	
	Vue.prototype.$u.http.interceptor.request = (config) => {
		return config
	}
	
	Vue.prototype.$u.http.interceptor.response = (res) => {
		return res
	}
}

export default {
	install
}